<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script>
        function Clothes(clothes1,clothes2){
            this.clothes1 =clothes1;
            this.clothes2 =clothes2;
        Clothes.prototype.type1='黑色的连衣裙';
        Clothes.prototype.type2='黄色的吊带裙';
        Clothes.prototype._fun = function(){
            console.log(this.type1 + '是小丽穿的衣服');
            console.log(this.type2 + '是小美穿的衣服');
            console.log('小美穿的衣服是'+this.type2);
        };
    }
    var n = new Clothes();
    n._fun(); 
    </script>
</body>
</html>